import { createContext } from "preact";
import { useContext } from "preact/hooks";


export const DemoContext = createContext<(() => any)[]>([]);

export const useDemoContext = () => useContext(DemoContext);